﻿import java.util.Scanner;


public class Exercise9 {

	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
        System.out.println("请输入用户名:");
        String name=input.next();
        System.out.println("请输入密码:");
        String pwd=input.next();
        if(name.equalsIgnoreCase("TOM")&&pwd.equalsIgnoreCase("1234567")){
        	System.out.println("登录成功!");
        }else{
        	System.out.println("用户名或密码不匹配，登录失败!");
        }
	}

}
